package cn.tedu.product.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

// 只有添加了@Configuration才能配置当前Spring环境
@Configuration
// 扫描commons模块的统一异常处理类,使其在项目中生效
@ComponentScan("cn.tedu.commons.exception")
@Slf4j
public class CommonsConfiguration {
    public CommonsConfiguration() {
        log.info("加载配置类：CommonsConfiguration");
    }

}
